﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComputerBeacon.Csv {
    public class Deserializer {
        public virtual object Deserialize(Type type, string s) {
            if (type.IsEnum) return Enum.Parse(type, s, false);
            return Convert.ChangeType(s, type, null);
        }
    }
}